package com.wxy.demo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/4/27 20:47
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class User {
    private Long id;
    private String name;
    private Integer age;

    public User(Long id, String name, Integer age) {
        this.id = id;
        this.setName(name);
        this.age = age;
    }

//    public static void printUser(@Nullable Long id, @NotNull String name, Integer age) {
//        System.out.println("User[id=" + id + ",name=" + name + ",age=" + age + "]");
//    }
}
